package com.xinyin.aiqinhaiback;

import com.xinyin.aiqinhaiback.config.ModbusConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

@SpringBootApplication
@ComponentScan(basePackages = {"com.xinyin.aiqinhaiback.common","com.xinyin.aiqinhaiback.modbus","com.xinyin.aiqinhaiback.service.handStrategy","com.xinyin.aiqinhaiback.Utils","com.xinyin.aiqinhaiback.task","com.xinyin.aiqinhaiback.service","com.xinyin.aiqinhaiback.controller","com.xinyin.aiqinhaiback.websocket","com.xinyin.aiqinhaiback.config"})
@MapperScan("com.xinyin.aiqinhaiback.mapper")
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableWebSocket
@EnableConfigurationProperties(ModbusConfig.class)
public class AiQinHaiApplication {

    public static void main(String[] args) {
        SpringApplication.run(AiQinHaiApplication.class, args);
        System.out.println("项目启动了");
    }




}
